/**
 * Generate code from /{{projectName}}-core/src/main/java/{{packageName}}/{{apis}}/dto/{{apiDtos@DEFAULT}}.java.hbs
 */
package cn.ibizlab.api.dto;

import java.util.*;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.alibaba.fastjson.annotation.JSONField;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import cn.ibizlab.util.domain.DTOBase;
import cn.ibizlab.util.domain.DTOClient;
import lombok.*;
import lombok.experimental.Accessors;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 系统[SysDeploySystemDTO]
 *
 * @author generator
 */
@Getter
@Setter
@NoArgsConstructor
@Accessors(chain = true)
@ApiModel("系统DTO")
public class SysDeploySystemDTO extends DTOBase implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 系统标识
     */
    @JsonProperty("id")
    @JSONField(name = "id")
    @ApiModelProperty(value = "系统标识", position = 0)
    private String id;

    /**
     * 系统名
     */
    @JsonProperty("system_id")
    @JSONField(name = "system_id")
    @ApiModelProperty(value = "系统名", position = 1)
    private String systemId;

    /**
     * 系统显示名称
     */
    @JsonProperty("display_name")
    @JSONField(name = "display_name")
    @ApiModelProperty(value = "系统显示名称", position = 2)
    private String displayName;

    /**
     * 创建人
     */
    @JsonProperty("creator")
    @JSONField(name = "creator")
    @ApiModelProperty(value = "创建人", position = 3)
    private String creator;

    /**
     * 创建时间
     */
    @JsonProperty("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
    @JSONField(name = "create_time" , format = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间", position = 4)
    private Date createTime;

    /**
     * 最后更新人
     */
    @JsonProperty("updater")
    @JSONField(name = "updater")
    @ApiModelProperty(value = "最后更新人", position = 5)
    private String updater;

    /**
     * 最后更新时间
     */
    @JsonProperty("update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
    @JSONField(name = "update_time" , format = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "最后更新时间", position = 6)
    private Date updateTime;

    /**
     * DC
     */
    @JsonProperty("dc")
    @JSONField(name = "dc")
    @ApiModelProperty(value = "DC", position = 7)
    private String dc;

    /**
     * 菜单
     */
    @JsonProperty("menus")
    @JSONField(name = "menus")
    @ApiModelProperty(value = "菜单", position = 8)
    private List<SysMenuDTO> menus;

    /**
     * 组件
     */
    @JsonProperty("components")
    @JSONField(name = "components")
    @ApiModelProperty(value = "组件", position = 9)
    private List<SysComponentDTO> components;

    /**
     * 接口
     */
    @JsonProperty("apis")
    @JSONField(name = "apis")
    @ApiModelProperty(value = "接口", position = 10)
    private List<SysApiDTO> apis;

    /**
     * 权限资源
     */
    @JsonProperty("permissions")
    @JSONField(name = "permissions")
    @ApiModelProperty(value = "权限资源", position = 11)
    private List<SysPermissionDTO> permissions;

    /**
     * 自定义资源
     */
    @JsonProperty("custom_resources")
    @JSONField(name = "custom_resources")
    @ApiModelProperty(value = "自定义资源", position = 12)
    private List<SysCustomResourceDTO> customResources;

    /**
     * MD5校验
     */
    @JsonProperty("md5_checksum")
    @JSONField(name = "md5_checksum")
    @ApiModelProperty(value = "MD5校验", position = 13)
    private String md5Checksum;

    /**
     * 绑定标识
     */
    @JsonProperty("binding_id")
    @JSONField(name = "binding_id")
    @ApiModelProperty(value = "绑定标识", position = 14)
    private String bindingId;

    /**
     * 描述
     */
    @JsonProperty("description")
    @JSONField(name = "description")
    @ApiModelProperty(value = "描述", position = 15)
    private String description;

    /**
     * 是否启用标识
     */
    @JsonProperty("enabled")
    @JSONField(name = "enabled")
    @ApiModelProperty(value = "是否启用标识", position = 16)
    private Integer enabled;


    /**
     * 设置 [系统名]
     */
    public SysDeploySystemDTO setSystemId(String systemId) {
        this.systemId = systemId;
        this.modify("system_id", systemId);
        return this;
    }

    /**
     * 设置 [系统显示名称]
     */
    public SysDeploySystemDTO setDisplayName(String displayName) {
        this.displayName = displayName;
        this.modify("display_name", displayName);
        return this;
    }

    /**
     * 设置 [DC]
     */
    public SysDeploySystemDTO setDc(String dc) {
        this.dc = dc;
        this.modify("dc", dc);
        return this;
    }

    /**
     * 设置 [菜单]
     */
    public SysDeploySystemDTO setMenus(List<SysMenuDTO> menus) {
        this.menus = menus;
        this.modify("menus", menus);
        return this;
    }

    /**
     * 设置 [组件]
     */
    public SysDeploySystemDTO setComponents(List<SysComponentDTO> components) {
        this.components = components;
        this.modify("components", components);
        return this;
    }

    /**
     * 设置 [接口]
     */
    public SysDeploySystemDTO setApis(List<SysApiDTO> apis) {
        this.apis = apis;
        this.modify("apis", apis);
        return this;
    }

    /**
     * 设置 [权限资源]
     */
    public SysDeploySystemDTO setPermissions(List<SysPermissionDTO> permissions) {
        this.permissions = permissions;
        this.modify("permissions", permissions);
        return this;
    }

    /**
     * 设置 [自定义资源]
     */
    public SysDeploySystemDTO setCustomResources(List<SysCustomResourceDTO> customResources) {
        this.customResources = customResources;
        this.modify("custom_resources", customResources);
        return this;
    }

    /**
     * 设置 [MD5校验]
     */
    public SysDeploySystemDTO setMd5Checksum(String md5Checksum) {
        this.md5Checksum = md5Checksum;
        this.modify("md5_checksum", md5Checksum);
        return this;
    }

    /**
     * 设置 [绑定标识]
     */
    public SysDeploySystemDTO setBindingId(String bindingId) {
        this.bindingId = bindingId;
        this.modify("binding_id", bindingId);
        return this;
    }

    /**
     * 设置 [描述]
     */
    public SysDeploySystemDTO setDescription(String description) {
        this.description = description;
        this.modify("description", description);
        return this;
    }

    /**
     * 设置 [是否启用标识]
     */
    public SysDeploySystemDTO setEnabled(Integer enabled) {
        this.enabled = enabled;
        this.modify("enabled", enabled);
        return this;
    }


}
